#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QDateTime>
#include <QLabel>
#include <QTimer>
#include <QLCDNumber>
#include <QFileInfoList>
#include <QDir>
#include <QRegExp>
#include <QProgressBar>
#include <QHBoxLayout>
#include <QVBoxLayout>
#ifdef Q_OS_WIN32
#include <windows.h>
#endif

#define GB (1024*1024*1024)

namespace Ui {
class MainWindow;
}

typedef struct
{
    QLabel* label;
    QProgressBar* bar;
    QHBoxLayout* layout;
}SLP;

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void init();

    QStringList disk();
    void displayDisk(QStringList list);

public slots:
    void timeout();

private:
    Ui::MainWindow *ui;
    QLabel* m_label;
    QTimer* m_timer;
    QLCDNumber* m_lcdNumber;
    QList<SLP* > m_processBarList;
};

#endif // MAINWINDOW_H
